'use strict';
const uniID = require('uni-id')
const db = uniCloud.database()
exports.main = async (event, context) => {
	let { action,params } = event
	
	let res = { code:400, errMsg:'action不正确' }
	if(!action) return res
	
	
	// 前端自行带参数
	res = await uniID[action](params)
	
	
	//返回数据给客户端
	return res
};
